package top.yuhaitao.core.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yuhaitao.core.mybatis.dbo.TUser;
import top.yuhaitao.core.service.UserSevice;

import javax.annotation.Resource;

/**
 * index
 *
 * @author ht.yu 75751845@qq.com
 * @date 2019-1-25 18:45:03
 */

@RestController
public class UserController {

    private Logger log = LoggerFactory.getLogger(UserController.class);

    @Resource
    UserSevice userSevice;


    @GetMapping("/getUser")
    public TUser getUser(Long id) {
        return userSevice.getUser(id);
    }
}
